package com.mangguo.tingjian.mgtjv3.service.impl;

import com.mangguo.tingjian.mgtjv3.dto.CategoryMenuDto;
import com.mangguo.tingjian.mgtjv3.entity.CategoryMenu;
import com.mangguo.tingjian.mgtjv3.mapper.CategoryMenuMapper;
import com.mangguo.tingjian.mgtjv3.service.ICategoryMenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 类目菜单表 服务实现类
 * </p>
 *
 * @author auto
 * @since 2019-12-12
 */
@Service
@AllArgsConstructor
public class CategoryMenuServiceImpl extends ServiceImpl<CategoryMenuMapper, CategoryMenu> implements ICategoryMenuService {

    private CategoryMenuMapper categoryMenuMapper;

    @Override
    public List<CategoryMenuDto> getAllCategoryMenu() {
        return categoryMenuMapper.getAllCategoryMenu();
    }
}
